<?php 
/**
 * @copyright  Copyright (c) 2010 Vistec Total IT Limited 
 */

class Vistec_Lightspeed_Model_Config_Visibility
{
    
	protected $_options;

    public function toOptionArray()
    {
        if (!$this->_options) {
            $this->_options = array();
            
            $optionArray = Mage::getModel('catalog/product_visibility')->getOptionArray();
        	$result = array();
        	$keys=array_keys($optionArray);
        	foreach ($keys as $key) {
	        	$this->_options[] = array(
	                'value' => $key,
	                'label'   => $optionArray[$key],
	            );

        	}
            
        }
        return $this->_options;
    }
}
